import request from '@/utils/request'

// 查询文件组列表
export function listFileGroup(query) {
  return request({
    url: '/operation/fileGroup/list',
    method: 'get',
    params: query
  })
}

// 查询文件组详细
export function getFileGroup(id) {
  return request({
    url: '/operation/fileGroup/' + id,
    method: 'get'
  })
}

// 新增文件组
export function addFileGroup(data) {
  return request({
    url: '/operation/fileGroup',
    method: 'post',
    data: data
  })
}

// 修改文件组
export function updateFileGroup(data) {
  return request({
    url: '/operation/fileGroup',
    method: 'put',
    data: data
  })
}

// 删除文件组
export function delFileGroup(id) {
  return request({
    url: '/operation/fileGroup/' + id,
    method: 'delete'
  })
}

export function executeMonitor(groupId){
  return request({
    url:'/operation/monitor/execute?groupId='+groupId,
    method:'get'
  })
}
